<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>威尼斯资产管理后台登录</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/lib/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/login.css"/>
</head>
<body>
	<div class="logo text-center">
		<img src="__PUBLIC__/images/logo.png"/>
	</div>
	<div class="login-box">
    	<form class="form-horizontal m-t"id="commentForm" onsubmit="return checksubmit();">
		  	<div class="inp-box">
		    	<i></i>
		    	<input type="text" name = "name" id = "name" placeholder="请输入账号">
		  	</div>
		  	<div class="inp-box">
		    	<i class="e"></i>
		    	<input type="password" name = "pwd" id = "pwd" placeholder="请输入密码">
		  	</div>
		  	<div class="inp-box">
		    	<i class="s"></i>
		    	<input type="text"  name="yzm" placeholder="验证码">
		    	
		    	<span><img src="/Admin/Home/verify" onclick="fleshVerify()" alt="刷新" id="verifyImg"/></span>
		  	</div>
		  	<div class="clearfix">
		  		<!-- <p class="f-right"><a href="javascript:;" style="color: #9a6e16;">忘记密码?</a></p> -->
		  	</div>
		  	<div class="login-but-box text-center">
		  		<button class="btn btn-primary"type="submit" />登&nbsp;&nbsp;&nbsp;录</button>
		  	</div>
		</form>
    </div>
    <div class="text-center bq">
    	<!-- 广州白云云石动力有限公司版权所有 京ICP备16057055号-1 京公网安备11010102001747号 -->
    </div>
    <div class="login-bg"></div>
</body>
<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/jquery.min.js" ></script>
<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/bootstrap.min.js" ></script>
</html>

<link href="__PUBLIC__/css/sweetalert/sweetalert.css" rel="stylesheet">
<script src="__PUBLIC__/js/sweetalert/sweetalert.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/shacha.js" ></script>
<script>
function checksubmit() {

		var formParam = $("#commentForm").serialize();//序列化表格内容为字符串
		//var formParam = new FormData($('#commentForm')[0]);//序列化表格内容为字符串
		/* return false; */
		$.ajax({
			type:'post',      
			url:'/Admin/Home/login',
			data:formParam,  
			cache:false,
			dataType:'json',  
			/*processData: false,  
            contentType: false,*/
			success:function(data){
				//alert(data.message);
				if (data.message == '登录成功！') {
					swal("登录成功！", "", "success");
					window.location.href="/admin.php";
					
				} else {
					swal(data.message, "", "error");
				} 
			}
		});
		return false;
	}
</script>
<script>
//重载验证码
function fleshVerify()
{
var timenow = new Date().getTime();
document.getElementById('verifyImg').src= '/Admin/Home/verify?'+timenow;
}
</script>










